
/**
 * @(#)MessageVO.java 2017年9月28日  下午2:47:42
 * <p>
 * Copyrights (C) 2017高德信息技术有限公司
 */
package com.wwy.monitor.model.vo;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

/**
 * (类型功能说明描述)
 *
 * <p>
 * 修改历史:                                            <br>  
 * 修改日期         修改人员    版本          修改内容<br>  
 * -------------------------------------------------<br>  
 * 2017年9月28日 下午2:47:42   fulianqiu     1.0     初始化创建<br>
 * </p> 
 *
 * @author fulianqiu
 * @version 1.0
 * @since JDK1.7
 */
public class MailMessageVO extends Message {

    /**
     * (变量说明描述) 
     *
     * long MailMessageVO.java serialVersionUID
     */
    private static final long serialVersionUID = -8695464532516298383L;

    private String mailTitle;

    private String mailText;

    private Map<String, InputStream> attachments;

    private List<String> toMailList;

    private List<String> ccMailList;

    /**
     * htmlText 默认为true
     */
    private Boolean htmlText = true;

    public String getMailTitle() {
        return mailTitle;
    }

    public void setMailTitle(String mailTitle) {
        this.mailTitle = mailTitle;
    }

    public List<String> getToMailList() {
        return toMailList;
    }

    public void addToMail(String sendTo) {
        toMailList.add(sendTo);
    }

    public void setToMailList(List<String> toMailList) {
        this.toMailList = toMailList;
    }

    public String getMailText() {
        return mailText;
    }

    public void setMailText(String mailText) {
        this.mailText = mailText;
    }

    public List<String> getCcMailList() {
        return ccMailList;
    }

    public void addCcMail(String ccTo) {
        ccMailList.add(ccTo);
    }

    public void setCcMailList(List<String> ccMailList) {
        this.ccMailList = ccMailList;
    }

    public Boolean isHtmlText() {
        return htmlText;
    }

    public void setHtmlText(Boolean htmlText) {
        this.htmlText = htmlText;
    }


    public Map<String, InputStream> getAttachments() {
        return attachments;
    }

    public void setAttachments(Map<String, InputStream> attachments) {
        this.attachments = attachments;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("MailMessageVO [mailTitle=").append(mailTitle).append(", mailText=").append(mailText)
                .append(", toMailList=").append(toMailList)
                .append(", ccMailList=").append(ccMailList).append(", htmlText=").append(htmlText).append("]");
        return builder.toString();
    }

}